package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @description: 熔断错误返回
 * @author wangdpng
 * @date 2023/12/12 13:30
 */
@RestController
public class ErrorController {
    @GetMapping(value = "/error")
    public Mono<String> errorResponse(){
        return Mono.just("error response");
    }
}
